package com.mzj.saas.mservice.property.repository;


import com.mzj.saas.mservice.property.entity.HouseRemainingRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface HouseRemainingRecordRepository extends JpaRepository<HouseRemainingRecord,Long>,JpaSpecificationExecutor<HouseRemainingRecord> {

    Page<HouseRemainingRecord> findByRemainingIdAndStatus(Long remainingId, Integer status, Pageable pageable);

    List<HouseRemainingRecord> findByRemainingIdAndStatus(Long remainingId, Integer status);

    HouseRemainingRecord findByRemainingIdAndOperateStatus(Long remainingId, Integer status);


    List<HouseRemainingRecord> findByRemainingIdIn(List<Long> remainingIds);

}
